package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ServeStaffRel;
import com.api.shopapi.mapper.ServeStaffRelMapper;
import com.api.shopapi.service.ServeStaffRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("ServeStaffRelServiceImplOne")
public class ServeStaffRelServiceImpl  implements ServeStaffRelService {

    @Autowired
    private ServeStaffRelMapper serveStaffRelMapper;

    @Override
    public int insert(ServeStaffRel serveStaffRel) {
        return serveStaffRelMapper.insert(serveStaffRel);
    }

    @Override
    public int update(ServeStaffRel serveStaffRel) {
        return serveStaffRelMapper.update(serveStaffRel);
    }

    @Override
    public ServeStaffRel getByServeStaffRelCode(String serveStaffRelCode) {
        return serveStaffRelMapper.getByServeStaffRelCode(serveStaffRelCode);
    }

    @Override
    public ServeStaffRel getByStaffCode(String staffCode) {
        return serveStaffRelMapper.getByStaffCode(staffCode);
    }

    @Override
    public ServeStaffRel getByServeCode(String serveCode) {
        return serveStaffRelMapper.getByServeCode(serveCode);
    }

    @Override
    public int delete(String serveStaffRelCode) {
        return serveStaffRelMapper.delete(serveStaffRelCode);
    }
}
